window.rootPath = (function(src) {
    src = document.scripts[document.scripts.length - 1].src;
    return src.substring(0, src.lastIndexOf("/") + 1);
})();

var dir = localStorage.getItem("staticDomain") + "/";
base = localStorage.getItem("staticDomain") + "/component/front/module/";

layui.config({
    base: base, //设定扩展的Layui模块的所在目录，一般用于外部模块扩展
    version: localStorage.getItem("frontVersion") //js和css文件统一版本号
});